package org.jeecg.common;

import lombok.Getter;

@Getter
public enum DivisorTypeEnum {
    INVOICE("发票",1),
    INCOME_TAX("所得税",2),
    VAT("增值税",3),
    FINANCIAL_STATEMENTS("财务报表",4);

    private String name;
    private Integer value;
    DivisorTypeEnum(String name,Integer value) {
        this.name = name;
        this.value = value;
    }

    public static String getDivisorTypeEnum(Integer v){
        if (v!=null){
            DivisorTypeEnum[] enums = DivisorTypeEnum.values();
            for (DivisorTypeEnum anEnum : enums) {
                if (v.equals(anEnum.value)){
                    return anEnum.name;
                }
            }
        }
        return null;
    }
}